import React from 'react';

class ControlComponent extends React.Component {
    constructor(props) {
        super(props);
        this.inputRef = React.createRef();
    }

    componentDidMount() {
        console.log(this.inputRef.current.value);
    }

    render() {
        return (
            <div>
                <input ref={this.inputRef} type="text" value="123213" />
            </div>
        );
    }
}

export default ControlComponent;
